package com.kantboot.api.phone.web.admin.controller;

import com.kantboot.api.phone.domain.dto.ApiPhoneSmsSearchDTO;
import com.kantboot.api.phone.service.IApiPhoneSmsService;
import com.kantboot.util.common.result.RestResult;
import com.kantboot.util.core.param.PageParam;
import com.kantboot.util.core.result.PageResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api-phone-web/admin/phoneSms")
public class ApiPhoneSmsControllerOfAdmin {

    @Resource
    private IApiPhoneSmsService service;

    @RequestMapping("/getBodyData")
    public RestResult<PageResult> getBodyData(@RequestBody PageParam<ApiPhoneSmsSearchDTO> pageParam){
        return RestResult.success(service.getBodyData(pageParam),"getSuccess","获取成功");
    }

}
